package top.toptimus.dto.pmc;

import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * 编排后的生产批，有完成标识和服装种类
 * TODO 命名
 *
 * @author gaoyu
 */
@NoArgsConstructor
public class WIPBatchHandCutDTO extends WIPBatchDTO {
    @Getter
    private boolean done = false;   //  完成标识
    @Getter
    private String styleName;

    public WIPBatchHandCutDTO(WIPBatchDTO wipBatchDTO) {
        super(
                wipBatchDTO.getBatchNo(),
                wipBatchDTO.getBatchDate(),
                wipBatchDTO.getBatchStatus(),
                wipBatchDTO.isUrgentFlg(),
                wipBatchDTO.getBatchQuantiry(),
                wipBatchDTO.getOrderId(),
                wipBatchDTO.getOrderNo(),
                wipBatchDTO.getOrderDate(),
                wipBatchDTO.getStyleId(),
                wipBatchDTO.getRefStyleId(),
                wipBatchDTO.getStyleSizeCd(),
                wipBatchDTO.getStyleNameCn(),
                wipBatchDTO.getStyleFabricId(),
                wipBatchDTO.getMaterialNameCn(),
                wipBatchDTO.getMaterialCode(),
                wipBatchDTO.getComposition(),
                wipBatchDTO.getCustomerId(),
                wipBatchDTO.getCustomerName(),
                wipBatchDTO.getMobile(),
                wipBatchDTO.getAddressId(),
                wipBatchDTO.getAddressProvince(),
                wipBatchDTO.getAddressCity(),
                wipBatchDTO.getAddressDistrict(),
                wipBatchDTO.getAddressDetail(),
                wipBatchDTO.getZipCode(),
                wipBatchDTO.getCustomerCountId(),
                wipBatchDTO.getRefOrderId(),
                wipBatchDTO.getRefOrderNo()
        );
    }

    public WIPBatchHandCutDTO build(boolean done) {
        this.done = done;
        return this;
    }

    public WIPBatchHandCutDTO build(String styleName) {
        this.styleName = styleName;
        return this;
    }
}
